package task;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Scanner;

/*
 * 咖啡
 */
public class Coffee extends AbstractShape{
	
	Collection<AbstractShape> a1 = new ArrayList<>();
	
	public Coffee( String name) {
		super(name);
	}
	public Coffee(){
		super("咖啡");
	}

//	public void add(AbstractShape abstractShape) {
//		abstractShape.setId(Id()+1);
//		a1.add(abstractShape);
//	}

	
	@Override
	public String totring() {
		// TODO Auto-generated method stub
		return  "COFFEE:"+a1.toString();
	}
	@Override
	public int Product() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public int Id() {
		// TODO Auto-generated method stub
		return 0;
	}
	@Override
	public String Name() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public String Brand() {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public float Price() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	
	public void add(AbstractShape abstractShape) {
		abstractShape.setId(Id()+1);
		a1.add(abstractShape);
	}
	



	


	
	
	
}
